.ad-container left-ad {
  width: 15px; /* 广告宽度 */
  left: 20px; /* 边距调整 */
  transition: transform 0.3s; /* 添加入场动画 */
}
.ad-container right-ad {
    width: 15px;
    right: 20px;
    transition: transform 0.3s;
}
/*重置浏览器的默认样式*/
body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, img {margin:0; padding:0; border:0; list-style:none;}
/*全局控制*/
body{font-family:Arial, Helvetica, sans-serif,"宋体"; font-size:12px;}
/*未点击和点击后的样式*/
a:link,a:visited{color:#222;text-decoration:none;}
/*鼠标移上时的样式*/                                               
a:hover{color:#ee3350;}  
header h1 {
    margin-bottom: 0.5rem;
}

/* 导航栏容器 */
nav {
    background-color: #003366;
    margin:9px 0px 0px 0px; 
 	padding:0px; 
 	width:100%; 
 	height:40px; 
 	line-height:40px; 
    vertical-align:middle; 
 	text-align:center;
}
.nav-left{
    margin:0px auto; 
 	padding:0px; 
 	width:800px;
}
/* 导航列表 */
.nav ul{color:#003366;}
.nav ul li{
	width:150px; 
	height:40px;
	transition:all 0.4s ease 0s;
	float:left;
	position:relative;
	transform-style:preserve-3d;
	perspective:6000px;
	}
/* 链接基础样式 */
nav a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s;
}

/* 悬停差异化样式 */
nav li:nth-child(1) a:hover { 
    color: #e74c3c; 
    border-bottom: 2px solid #e74c3c; 
}
nav li:nth-child(2) a:hover { 
    color: #2ecc71; 
    border-bottom: 2px solid #2ecc71; 
}
nav li:nth-child(3) a:hover { 
    color: #9b59b6; 
    border-bottom: 2px solid #9b59b6; 
}
nav li:nth-child(4) a:hover { 
    color: #e3ce16; 
    border-bottom: 2px solid #3498db; 
}
nav li:nth-child(5) a:hover { 
    color: #fe9f06; 
    border-bottom: 2px solid #3498db; 
}
section {
    margin-bottom: 2rem;
}
/* 可选：固定导航栏 */
header { position: sticky; top: 0; z-index: 1000; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: "微软雅黑", Arial, sans-serif;
    background: #f5f6fa;
    color: #222;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background: #003366;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    height: 64px;
    box-shadow: 0 2px 8px #0002;
}
header h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin: 0;
}
nav ul.nav-left {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 22px;
    font-size: 1.08rem;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 1px;
}
nav a.active, nav a:hover {
    background: #003366;
    color: #fff;
}
main {
    flex: 1 0 auto;
    padding: 40px 6vw 80px 6vw;
    margin-top: 80px;
}
section {
    display: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    padding: 28px 24px;
    margin-bottom: 32px;
}
section.active {
    display: block;
}
/* 轮播图 */
.img-carousel-section {
    margin-top: 64px; /* 与header高度相同 */
    width: 100%;
    background: #f5f5f5;
    padding: 20px 0;
}

.carousel-container.fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px; /* 调整高度 */
    border-radius: 10px;
    overflow: hidden;
}

.carousel-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.carousel-img.active {
    opacity: 1;
    display: block;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dots span.active {
    background: white;
}

/* 文字轮播图样式 */
.text-news-section {
    width: 1000px;
    height: 44px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-carousel-container {
    width: 100%;
    height: 44px;
    overflow: hidden;
}

.text-carousel {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease;

    width: 100%;
    padding: 10px 0;
}

.text-carousel li {
    height: 44px;
    line-height: 44px;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .carousel {
        height: 250px;
    }

    .text-carousel-container {
        margin: 0 10px;
    }

    .text-carousel li {
        font-size: 14px;
        padding: 0 15px;
    }
}

/* 首页分区 */
.home-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    padding: 24px 20px;
    margin: 32px 0;
}
.highlight-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.highlight-item {
    width: 180px;
    text-align: center;
}
.highlight-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}
.playoff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}
.playoff-table th, .playoff-table td {
    border: 1px solid #eee;
    padding: 8px 0;
    text-align: center;
}
.player-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.player-item {
    width: 120px;
    text-align: center;
}
.player-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid #eee;
}
.skills-list {
    list-style: disc inside;
    color: #003366;
    font-size: 16px;
    margin: 0;
    padding-left: 18px;
}
@media (max-width: 900px) {
    .highlight-list, .player-list { flex-direction: column; gap: 12px; }
    .carousel-img { height: 180px; }
}
/* 轮播区吸顶 */
/* .sticky-top { ... } */
/* 轮播图全宽 */
.carousel-container.fullwidth {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
}
.carousel-img {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 340px;
    object-fit: cover;
    display: none;
    transition: opacity 0.5s;
    background: #eee;
}
.carousel-img.active {
    display: block;
    opacity: 1;
}
.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.carousel-dots span {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid #0055a5;
    transition: opacity 0.2s, background 0.2s;
}
.carousel-dots span.active {
    opacity: 1;
    background: #0055a5;
}
/* 首页两列布局 */
.home-grid {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}
.home-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.home-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0001;
    padding: 28px 24px;
    margin: 0;
    transition: box-shadow 0.2s;
}
.home-section:hover {
    box-shadow: 0 4px 24px #0002;
}
.highlight-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.highlight-item {
    width: 180px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 4px #0001;
    padding: 10px 0 8px 0;
    transition: box-shadow 0.2s;
}
.highlight-item:hover {
    box-shadow: 0 4px 16px #0055a522;
    background: #f0f4fa;
}
.highlight-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #eee;
}
.playoff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    font-size: 1.02rem;
}
.playoff-table th, .playoff-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 0;
    text-align: center;
}
.playoff-table th {
    background: #eaf2fb;
    color: #003366;
    font-weight: 600;
}
.playoff-table tr:nth-child(even) td {
    background: #f4f8fc;
}
.player-list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.player-item {
    width: 120px;
    text-align: center;
}
.player-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid #eee;
}
.skills-list {
    list-style: disc inside;
    color: #003366;
    font-size: 16px;
    margin: 0;
    padding-left: 18px;
}
@media (max-width: 900px) {
    .home-grid { flex-direction: column; gap: 16px; }
    .highlight-list, .player-list { flex-direction: column; gap: 12px; }
    .carousel-img { height: 180px; }
    .carousel-container.fullwidth, .text-carousel-container { width: 100vw; }
}
/* tab导航样式（如已存在可略过） */
#player-tabs .tab-nav {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}
#player-tabs .tab-btn {
    padding: 8px 28px;
    border-radius: 22px;
    background: #f0f4fa;
    color: #003366;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s;
    user-select: none;
    border: 2px solid transparent;
}
#player-tabs .tab-btn.active, #player-tabs .tab-btn:hover {
    background: #0055a5;
    color: #fff;
    border: 2px solid #0055a5;
}
#player-tabs .tab-content { display: none; }
#player-tabs .tab-content.active { display: block; }
#player-tabs h3 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    color: #0055a5;
    letter-spacing: 1px;
}
/* 球队专区列表 */
.team-zone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}
.team-zone-list li {
    background: #eaf2fb;
    color: #003366;
    border-radius: 16px;
    padding: 6px 18px;
    margin: 0;
    font-weight: 500;
    font-size: 1.01rem;
    border: 1px solid #d0e2f7;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.team-zone-list li:hover {
    background: #0055a5;
    color: #fff;
    border-color: #0055a5;
}
/* 响应式 */
@media (max-width: 1100px) {
    .home-grid { flex-direction: column; gap: 24px; }
    .carousel-img { height: 200px; }
    main { padding: 32px 2vw 32px 2vw; }
}
@media (max-width: 700px) {
    header { flex-direction: column; height: auto; padding: 10px 0; }
    header h1 { font-size: 1.3rem; }
    nav ul.nav-left { gap: 12px; }
    .carousel-img { height: 120px; }
    .home-section { padding: 16px 8px; }
    .highlight-item { width: 100%; }
    .team-zone-list li { font-size: 0.95rem; padding: 5px 10px; }
}
html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #003366;
    height: 50px;
    z-index: 1000;
}
.bottom-content {
    color: #fff;
    text-align: center;
    line-height: 50px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-carousel-container {
        height: 50px;
    }
    
    .text-carousel {
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        padding: 0 15px;
    }
    
    .text-carousel li {
        height: 50px;
        padding: 0 10px;
    }
}

/* 导航栏容器样式 */
header {
    background: linear-gradient(to right, #003366, #004080);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 网站标题样式 */
header h1 {
    color: #ffffff;
    font-size: 28px;
    margin: 0;
    padding: 0 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* 导航栏整体布局 */
nav {
    display: flex;
    justify-content: center;
    padding: 15px 0 5px 0;
}

/* 导航列表样式 */
.nav-left {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-left li {
    margin: 0 15px;
}

.nav-left a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

/* 修改悬停效果 */
.nav-left a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

/* 修改下划线动画效果 */
.nav-left a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-left a:hover::after {
    width: 100%;
}

/* 修改激活状态样式 */
.nav-left a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-left a.active::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
        text-align: center;
        padding: 10px 0;
    }

    nav {
        padding: 10px 0;
    }

    .nav-left {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-left a {
        font-size: 14px;
        padding: 6px 15px;
    }
}

/* Content wrapper to control width */
.content-wrapper {
    max-width: 1200px;  /* Reduced from full width */
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.95em;  /* Slightly reduce base font size */
}

/* Adjust carousel container width */
.carousel-container {
    max-width: 800px;  /* Reduced from original size */
}

/* Adjust home grid layout */
.home-grid {
    max-width: 1000px;
    margin: 0 auto;
}

/* Adjust section widths */
section {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Adjust news container */
.news-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Adjust schedule container */
.schedule-container {
    width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-date {
    margin-bottom: 30px;
}

.schedule-date h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

/* 比赛项目样式 */
.game-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.2s;
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 球队信息容器 */
.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
}

/* 球队logo样式 */
.team-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

/* 球队名称样式 */
.team-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* VS样式 */
.vs {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    margin: 0 40px;
}

/* 比赛时间样式 */
.time {
    font-size: 16px;
    color: #666;
    background: #e9ecef;
    padding: 5px 15px;
    border-radius: 15px;
    margin-left: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-wrapper {
        max-width: 90%;
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        max-width: 95%;
        font-size: 0.9em;
    }
}

/* Match width for NBA news section */
#nba .news-container {
    width: 800px;
    margin: 0 auto;
    padding: 15px;
}

/* Match width for schedule section */
#schedule .schedule-container {
    width: 800px;
    margin: 0 auto;
    padding: 15px;
}

/* Match width for stats section */
#stats .stats-container {
    width: 800px;
    margin: 0 auto;
    padding: 15px;
}

/* Add consistent styling for all sections */
.section-content {
    width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 840px) {
    .text-news-section,
    #nba .news-container,
    #schedule .schedule-container,
    #stats .stats-container,
    .section-content {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ensure text carousel container fills the width */
.text-carousel-container {
    width: 100%;
    overflow: hidden;
}

.text-carousel {
    width: 100%;
    padding: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .text-news-section {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Keep home grid width consistent */
.home-grid {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

/* Ensure other sections match the same width */
#nba .news-container,
#schedule .schedule-container,
#stats .stats-container,
.section-content {
    width: 1000px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive design for all sections */
@media (max-width: 1024px) {
    .home-grid,
    #nba .news-container,
    #schedule .schedule-container,
    #stats .stats-container,
    .section-content {
        width: 95%;
    }
    
    .home-grid {
        flex-direction: column;
    }
}

/* 球员数据tab区域样式优化 */
#player-tabs {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tab导航样式优化 */
.tab-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #003366;
    background: #f0f5ff;
}

.tab-btn:hover {
    background: #f0f5ff;
}

/* Tab内容区域样式 */
.tab-content {
    padding: 10px 0;
}

.tab-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

/* 今日最佳列表样式 */
.today-best-list {
    list-style: none;
    padding: 0;
}

.today-best-list li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 15px;
}

.today-best-list b {
    color: #003366;
    font-size: 16px;
    margin: 0 8px;
}

/* 球员场均列表样式 */
.player-avg-list {
    list-style: none;
    padding: 0;
}

.player-avg-list li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 15px;
}

.player-avg-list b {
    color: #003366;
    font-size: 16px;
    margin: 0 8px;
}

/* 添加球员头像样式 */
.player-avatar {
    width: 40px;  /* 调整头像大小 */
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

/* 数据展示样式 */
.stat-value {
    margin-left: auto;
    font-weight: 600;
    color: #ee3350;
}

/* 数据排行板块样式 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.stats-category {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-category h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a73e8;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    background-color: #f0f2f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #444;
}

.stats-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.stats-table tr:hover {
    background-color: #f5f8ff;
}

.stats-table th:first-child,
.stats-table td:first-child {
    text-align: center;
    width: 60px;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* NBA新闻部分样式 */
#nba {
    padding: 40px 5%;
    background-color: #f8f9fa;
}

#nba h2 {
    font-size: 2.2rem;
    color: #1a73e8;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

#nba h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1a73e8;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-text {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-text h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.news-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-time {
    font-size: 0.95rem;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .news-item img {
        height: 200px;
    }
    
    .news-text h3 {
        font-size: 1.2rem;
    }
    
    .news-text p {
        font-size: 1rem;
    }
}

/* 今日赛程轮播图样式 */
#today-games {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#today-games h2 {
    color: #1a73e8;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

#today-games h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #1a73e8;
}

.games-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.games-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.game-slide {
    display: none;
    width: 100%;
    transition: transform 0.5s ease;
}

.game-slide.active {
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.carousel-arrow:hover {
    background-color: #1557b0;
}

.carousel-arrow.prev {
    left: 0;
}

.carousel-arrow.next {
    right: 0;
}

.game-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 600px;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.team-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.vs {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a73e8;
}

.time {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* 讨论区样式 */
.discussion-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-button-container {
    margin-bottom: 20px;
    text-align: right;
}

.post-button {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-button:hover {
    background-color: #1565c0;
}

.post-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.post-info {
    flex: 1;
}

.post-author {
    font-weight: bold;
    color: #333;
}

.post-time {
    font-size: 12px;
    color: #666;
}

.post-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.post-content p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.6;
}

.post-images img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f5f5f5;
    color: #1e88e5;
}

.comments-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-left: 10px;
    max-width: 100%;
}

.comment-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
    display: block;
}

.comment-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-actions {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
}

.comment-actions button:hover {
    color: #1e88e5;
}

/* 评论项样式优化 */
.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
    max-width: 100%;
}

/* 评论图片容器样式 */
.comment-image-container {
    margin: 8px 0;
    text-align: center;
}

/* 评论图片样式 */
.comment-image-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 评论图片悬停效果 */
.comment-image-container img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* 评论内容中的链接样式 */
.comment-content a {
    color: #1e88e5;
    text-decoration: none;
}

.comment-content a:hover {
    text-decoration: underline;
}

/* 评论内容中的引用样式 */
.comment-content blockquote {
    margin: 8px 0;
    padding: 8px 12px;
    border-left: 3px solid #1e88e5;
    background-color: rgba(30, 136, 229, 0.1);
    border-radius: 0 4px 4px 0;
}

/* 评论内容中的代码样式 */
.comment-content code {
    background-color: #f1f1f1;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* 评论内容中的列表样式 */
.comment-content ul, 
.comment-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

/* 评论内容中的表格样式 */
.comment-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.comment-content th,
.comment-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.comment-content th {
    background-color: #f8f9fa;
}

/* 讨论区额外美化样式 */
.discussion-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
}

.post-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #1e88e5, #1565c0);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.2);
}

.post-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.3);
}

.post-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.post-images img {
    transition: transform 0.3s;
    cursor: pointer;
}

.post-images img:hover {
    transform: scale(1.02);
}

.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s;
}

.action-btn:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

.comment-item {
    transition: background-color 0.2s;
}

.comment-item:hover {
    background-color: #f8f9fa;
}

.comment-actions button {
    transition: color 0.2s;
}

.comment-actions button:hover {
    color: #1e88e5;
}

/* 评论框样式 */
.comment-input-box {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
}

.comment-submit-box {
    text-align: right;
}

.comment-submit-btn {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-submit-btn:hover {
    background-color: #1565c0;
}

/* 点赞按钮激活状态 */
.like-btn.liked {
    color: #1e88e5;
}

/* 评论操作按钮样式 */
.comment-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 10px;
    transition: color 0.3s;
}

.comment-actions button:hover {
    color: #1e88e5;
}

.comment-actions button.liked {
    color: #1e88e5;
}

/* 回复框样式 */
.reply-input-box {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.reply-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 8px;
    font-family: inherit;
}

.reply-submit-box {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.reply-submit-btn, .reply-cancel-btn {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.reply-submit-btn {
    background-color: #1e88e5;
    color: white;
    border: none;
}

.reply-submit-btn:hover {
    background-color: #1565c0;
}

.reply-cancel-btn {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.reply-cancel-btn:hover {
    background-color: #e9ecef;
}

/* 回复列表样式 */
.replies-container {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

.reply-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.reply-content {
    flex: 1;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
}

.reply-author {
    font-weight: bold;
    margin-bottom: 4px;
}

.reply-actions {
    margin-top: 4px;
    font-size: 12px;
}

/* 点赞按钮样式 */
.comment-like-btn, .reply-like-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.comment-like-btn:hover, .reply-like-btn:hover {
    color: #1e88e5;
}

.comment-like-btn.liked, .reply-like-btn.liked {
    color: #1e88e5;
}
